﻿@model handvn.Models.DetailCategories

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@if (Request.IsAuthenticated && @Session["LoaiTaiKhoan"]!=null)
{
    if (@Session["LoaiTaiKhoan"].ToString() == "admin")
    {
<h1>Quản lý chi tiết danh mục</h1>
<h2>Details</h2>

<fieldset>
    <legend>DetailCategories</legend>

    <div class="display-label">Categories</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Categories.TenDanhMuc)
    </div>

    <div class="display-label">TenChiTietDanhMuc</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TenChiTietDanhMuc)
    </div>

    <div class="display-label">TinhTrang</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TinhTrang)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.DetailCategoriesID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
    }
}
else
{
    <p>
        Xin vui lòng đăng nhập</p>
    <script type="text/javascript">
        window.location.href = "http://handvn.com/Account/Admin"
    </script>
}